package com.stone.framework.message.user;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import io.swagger.annotations.ApiModelProperty;

public class UserReqBody {

    @ApiModelProperty(value = "主键，新增时不使用")
    private Long id;

    @ApiModelProperty(value = "用户名", required = true)
    @NotBlank(message = "[name] {title.notBlank}")
    private String name;

    @ApiModelProperty(value = "用户姓名", required = true)
    @NotBlank(message = "[cname] {title.notBlank}")
    private String cname;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "wechat")
    private String wechat;

    @ApiModelProperty(value = "状态：DISABLED|ENABLED", required = true)
    @NotNull(message = "[state] {title.notNull}")
    @Pattern(regexp = "(DISABLED|ENABLED)", message = "[state] must be 'DISABLED|ENABLED'")
    private String state;

    @ApiModelProperty(value = "部门号", required = true)
    @NotBlank(message = "[deptCode] {title.notBlank}")
    private String deptCode;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getDeptCode() {
        return deptCode;
    }

    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }

}
